package com.example.ticket.service;

import com.example.ticket.entity.Ticket;

import java.util.List;

public interface TicketService {
    public Ticket insertTicket(Ticket ticket);

    public Ticket updateTicketStatus(Ticket ticket);

    public Ticket updateBack(Ticket ticket);

    public int deleteById(Integer id);

    public Ticket selectById(Integer id);

    public List<Ticket> TicketList();

    public Ticket updateTicketById(Ticket ticket);

    public List<Ticket> selectMyTicket(Integer userId);

    public List<Ticket> selectMyTicketByStatus(Integer userId,Integer status);

    public List<Ticket> selectSTticket(Integer status);

/*
    public List<Ticket> selectBycondition(String companyName,Integer id);
*/

    public Ticket ChangeTicket(Ticket ticket);
}
